package com.authine.cloudpivot.web.api.service.impl;

import com.authine.cloudpivot.web.api.dao.KHBZMapper;
import com.authine.cloudpivot.web.api.domain.dto.AssessmentStandardDTO;
import com.authine.cloudpivot.web.api.service.AssessmentManagementService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Slf4j
@Service
public class AssessmentManagementServiceImpl implements AssessmentManagementService {

    @Autowired
    private KHBZMapper khbzMapper;

   /**
    * @Description : 根据评分查询金额
    * @param ：
    * @author : Liun
    * @date : 2020/4/8
    */
   @Override
   @Transactional(rollbackFor = Exception.class)
   public Integer selectAmount(AssessmentStandardDTO dto){
       //根据条件查询出对应的金额
       int amount=khbzMapper.selectAmount(dto);
       return amount;
  }


}

